package com.woody.aggregate.enums;

import com.woody.base.exception.IBaseException;

/**
 * 业务异常枚举
 */
public enum BusinessExceptionEnum implements IBaseException {


    OPERATION_FAIL(60000, "操作失败"),
    PARAM_ERROR(60004, "参数异常,{}"),
    ;

    BusinessExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private String msg;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
